ScMobileApp.CustomerController = Ember.Controller.extend({
	pageInit: function(view) {
		this.view = view;
	    this.eventBind();

		//this.view.$("#cust_kor_nm").focus().select();
		this.view.$("#cust_kor_nm").val("황태연");
		this.view.$("#sn_1").val("123456");
		this.view.$("#sn_2").val("6543211");
		this.view.$("#cust_eng_nm").val("tenny ");
		this.view.$("#cust_country").val("KR");
		this.view.$("#zip_code").val("123");

		this.view.$("#btn_save_customer").focus().select();
		
	},
	eventBind: function(){
		this.view.$("#btn_search_zip").click(function(){
			alert("zip code search click!!!!");
		});

		this.view.$("#btn_save").click($.proxy(function(){
			sessionStorage.setItem("cust_kor_nm",this.view.$("#cust_kor_nm").val());
			sessionStorage.setItem("cust_eng_nm",this.view.$("#cust_eng_nm").val());
			sessionStorage.setItem("casa","[{\"casa_id\":\"0001\",\"casa_nm\":\"두드림\"},{\"casa_id\":\"0002\",\"casa_nm\":\"두드림2\"}]");
			
			this.transitionToRouteAnimated('casa', {main: 'slideLeft'});
	
			return false;

		}, this));
	},
	dataBind: function(data){
		
	}
});
